package com.site.wisdom_construction.service.iotModule;

import com.site.wisdom_construction.dao.iotModule.FoundationWaterDao;
import com.site.wisdom_construction.entity.iotModule.FoundationWater;
import com.site.wisdom_construction.statisticsResult.FoundationWaterName;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @Author daiyifei
 * @Date 2022/3/11
 * @Description
 */
@Service
public class FoundationWaterService implements FoundationWaterDao {
    @Autowired
    private FoundationWaterDao foundationWaterDao;

    @Override
    public int insertFoundationWater(Map map) {
        return foundationWaterDao.insertFoundationWater(map);
    }

    @Override
    public int deleteFoundationWater(Map map) {
        return foundationWaterDao.deleteFoundationWater(map);
    }

    @Override
    public List<FoundationWaterName> countFoundationWaterByName(Map map) {
        return foundationWaterDao.countFoundationWaterByName(map);
    }

    @Override
    public List<String> countFoundationWaterByUpTime(Map map) {
        return foundationWaterDao.countFoundationWaterByUpTime(map);
    }

    @Override
    public List<FoundationWater> findFoundationWaterByName(String name) {
        return foundationWaterDao.findFoundationWaterByName(name);
    }

    @Override
    public List<FoundationWater> findFoundationWater(Map map) {
        return foundationWaterDao.findFoundationWater(map);
    }

    @Override
    public List<FoundationWater> findFoundationWaterByNameNew(Map map) {
        return foundationWaterDao.findFoundationWaterByNameNew(map);
    }

    @Override
    public Long Total(Map map) {
        return foundationWaterDao.Total(map);
    }

    @Override
    public List<FoundationWater> findFoundationAxialByPage(Map map) {
        return foundationWaterDao.findFoundationAxialByPage(map);
    }
}
